package com.yt.Insurance.server.mapper;

import com.yt.Insurance.models.entity.InsurancePolicy;
import com.yt.Insurance.models.bo.PolicyQueryBO;
import com.yt.product.models.entity.InsuranceProduct;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Mapper;
import java.util.List;

@Mapper
public interface InsurancePolicyMapper {
    int insert(InsurancePolicy record);

    InsurancePolicy selectByPrimaryKey(Integer policyId);

    int updateByPrimaryKeySelective(InsurancePolicy record);

    List<InsurancePolicy> selectByCondition(@Param("query") PolicyQueryBO queryBO);

    InsuranceProduct selectInsuranceProductByProductId(Integer productId);
}